package com.im.partchat.http.api;


import com.im.partchat.bean.FriendApply;
import com.im.partchat.bean.reponsed.BaseResponse;
import com.im.partchat.bean.request.FriendAddRequest;
import com.im.partchat.bean.request.FriendConfirmRequest;
import com.im.partchat.bean.request.FriendDeleteRequest;
import com.im.partchat.bean.request.FriendListRequest;
import com.im.partchat.bean.request.RequestBean;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Created by hhz on 2017/7/3.
 */

public interface FriendApi {



    @POST("logon/rongyun/friendList")
    Observable<BaseResponse<List<String[]>>> friendList(@Body RequestBean<FriendListRequest> object);

    @POST("logon/rongyun/friendApplyAdd")
    Observable<BaseResponse<Object>> friendApplyAdd(@Body RequestBean<FriendAddRequest> object);

    @POST("logon/rongyun/friendApplyConfirm")
    Observable<BaseResponse<Object>> friendApplyConfirm(@Body RequestBean<FriendConfirmRequest> object);

    @POST("logon/rongyun/friendDelete")
    Observable<BaseResponse<Object>> friendDelete(@Body RequestBean<FriendDeleteRequest> object);

    @POST("logon/rongyun/friendApplyList")
    Observable<BaseResponse<List<FriendApply>>> friendApplyList(@Body RequestBean<FriendListRequest> object);

}
